<!DOCTYPE html>
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
  <title></title>
</head>
<body>
  <input type="file" id="input">
  <button id="btn" type="button">上传</button>
</body>
<script src="./lib/jquery.js"></script>
<script src="./lib/shp.js"></script>
<script>
  // https://github.com/calvinmetcalf/shapefile-js
  // $(document).ready(function () {
  //   $("#btn").click(function () {
  //     var file = $("#input").prop('files')[0]
  //     var reader = new FileReader()
  //     //将文件以二进制形式读入页面
  //     reader.readAsArrayBuffer(file)
  //     reader.onload = function (event) {
  //       shp(event.target.result).then(function (geojson) {
  //         console.log(geojson)
  //       })
  //     }
  //   })
  // })
  console.log(getBinaryData('./data/POI.zip'))
</script>
</html>